import { post } from '../http'

/**
 * @description: 获取维修列表
 * @param data
 * @return Promise
 */
export const getRepairList = (data) => post({ url: '/repair/pageList', data })
/**
 * @description: 新增
 * @param data
 * @return Promise
 */
export const repairCreate = (data) => post({ url: '/repair/create', data })
/**
 * @description: 删除
 * @param data
 * @return Promise
 */
export const repairDelete = (data) => post({ url: '/repair/remove', data })
/**
 * @description: 编辑
 * @param data
 * @return Promise
 */
export const repairUpdate = (data) => post({ url: '/repair/update', data })
/**
 * @description: 详情
 * @param data
 * @return Promise
 */
export const repairDetail = (data) => post({ url: '/repair/detail', data })
/**
 * @description: 导出
 * @param data
 * @return Promise
 */
export const repairExport = (data) => post({ url: '/repair/exportExcel', data })
/**
 * @description: 导入
 * @param data
 * @return Promise
 */
export const repairImport = (data) => post({ url: '/repair/pageList', data })
/**
 * @description: 车牌列表
 * @param data
 * @return Promise
 */
export const getLicenseNoLike = (data) => post({ url: '/carInfo/getLicenseNoLike', data })
/**
 * @description: 修理厂（供应商）列表
 * @param data
 * @return Promise
 */
export const getSupplierList = (data) => post({ url: '/supplier/findList', data })
/**
 * @description: 获取当前用户信息
 * @param data
 * @return Promise
 */
export const findUserInfo = (data) => post({ url: '/user/findUserInfo', data })
/**
 * @description: 员工列表
 * @param data
 * @return Promise
 */
export const getStaff = (data) => post({ url: '/staff/selectStaffByOrgId', data })
/**
 * @description: 删除
 * @param data
 * @return Promise
 */
export const carMaintenanceDelete = (data) => post({ url: '/carMaintenance/delete', data })
/**
 * @description: 查询全部配件(全部保养项目)
 * @param data
 * @return Promise
 */
export const getAllMaintenance = (data) => post({ url: '/maintenanceParam/getAllList', data })
/**
 * @description: 添加配件(添加保养项目)
 * @param data
 * @return Promise
 */
export const maintenanceSave = (data) => post({ url: '/maintenanceParam/batchSave', data })
/**
 * @description: 门店列表(筛选里的)
 * @param data
 * @return Promise
 */
export const getStoreList = (data) => post({ url: '/siteLease/searchForStaff', data })
/**
 * @description: 负责人（联动门店）
 * @param data
 * @return Promise
 */
export const selectStaffByOrgId = (data) => post({ url: '/staff/selectStaffByOrgId', data })

// 获取关联订单号
export const getRelationOrderNo = (data) => post({ url: '/carInfo/findOrder', data })

// 查询当前车辆信息
export const getCarOrder = (data) => post({ url: '/sOrder/orderCarInfo', data })

/** 关闭维修单 */
export const closeRepair = (data) => post({ url: '/repair/close', data })
